#!/bin/bash

#mvn clean package -DskipTests
mvn clean install -Dmaven.test.skip=true

rm -rf ./jars/
mkdir -p ./jars

mv scs-config/target/*.jar ./jars/
mv scs-monitor/target/*.jar ./jars/
mv scs-registry/target/*.jar ./jars/
mv scs-zipkin/target/*.jar ./jars/

mv scs-gateway/target/*.jar ./jars/
mv scs-customer/target/*.jar ./jars/
mv scs-kefu/target/*.jar ./jars/

echo "请先下载监控中心源码: git clone git@gitee.com:aaronsd/spring-boot-monitor.git"
echo "存放到与spring-cloud-security工程同级目录"

cd ../spring-boot-monitor
mvn clean install -Dmaven.test.skip=true
mv target/*.jar ../spring-cloud-security/jars/

